package com.unme.service.impl;


import com.unme.dao.LabelDao;
import com.unme.model.Label;
import com.unme.service.LabelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LabelServiceImpl implements LabelService {
   @Autowired
   private LabelDao labelDao;
	@Override
	public void addLabel(Label label) {
		labelDao.addLabel(label);
	}

	@Override
	public void deleteLabel(Label label) {
        labelDao.deleteLabel(label);
	}

	@Override
	public void updateLabel(Label label) {
		labelDao.updateLabel(label);
	}

	@Override
	public List<Label> findAllLabel(Label label) {
		return labelDao.findLabel(label);
	}

	@Override
	public Label getLabelById(Label label) {
		return labelDao.getLabelById(label);
	}
}
